home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-15
/
phbench.zip
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1993-01-04
|
1KB
|
37 lines
#
# Makefile for the Plum-Hall benchmarks package
# by Eric S. Raymond (eric@snark.uu.net)
#
# Your system type for the benchmark list (do *not* string-quote it)
SYSTYPE = AT&T 6386/375
# Ditto, if your headers define CLOCKS_PER_SEC
CFLAGS = -DCLOCKS_PER_SEC=60
# Comment this out if you have ANSI clock(3)
CLOCK = clock.o
bench.out: nbench obench
nbench 1 "$(SYSTYPE) (no -O)" >bench.out
obench 1 "$(SYSTYPE) (-O)" >>bench.out
# optimizer off
nbench.o: benches.c
$(CC) $(CFLAGS) -c benches.c
mv benches.o nbench.o
nbench: nbench.o f3.o $(CLOCK)
cc -o nbench nbench.o f3.o $(CLOCK) -lm
# optimizer on
obench.o: benches.c
$(CC) -O $(CFLAGS) -c benches.c
mv benches.o obench.o
obench: obench.o f3.o $(CLOCK)
cc -o obench obench.o f3.o $(CLOCK) -lm
clean:
rm -f [no]bench *.o bench.shar
bench.shar:
shar READ.ME Makefile *.c *.out *.bat *.sh cr-lf n-n bench.tbl ARTICLE >bench.shar